package com.wangzhe.utils;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;

/**
 * @author 王哲
 * @ClassName JsonUtils
 * @create 2023--六月--下午3:47
 * @Description 序列化
 * @Version V1.0
 */
public class JsonUtils {

    public static String toJson(Object object){

        if (object==null){
            return "";
        }
        return JSON.toJSONString(object, SerializerFeature.DisableCircularReferenceDetect);
    }

}
